package com.code.wflow.api.impl;

import com.code.wflow.api.UserApi;
import com.code.wflow.mapper.AclUserMapper;
import com.code.wflow.model.AclUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 用户服务接口远程调用实现类
 */
@Component
public class UserApiImpl implements UserApi {
    @Autowired
    private AclUserMapper aclUserMapper;

    @Override
    public AclUser selectById(Long id) {
        return this.aclUserMapper.queryById(id);
    }

    @Override
    public List<AclUser> selectByIds(List<Long> ids) {
        return this.aclUserMapper.queryByIds(ids);
    }
}
